package com.hyfrogx.modules.manage.entity.chargePayRecord;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: Luo
 * @Date: 2019/12/5 17:11
 */
@Data
@TableName("hy_alipay_record")
public class ChargePayRecordEntity {

    private Integer id;

    private Long uid;
    // 订单金额
    private Integer totalAmount;
    // 应得虚拟币
    private Integer coin;

    //状态 1是支付完成 0 是待支付 -1用户取消
    private Integer status;
    // 订单号
    private String outTradeNo;
    // 实收
    private BigDecimal receiptAmount;
    // 实付
    private BigDecimal buyerPayAmount;
    // 充值规则赠送虚拟币
    private Integer chargePresentCoin;

    @TableField(exist = false)
    private String username;

    // 充值途径
    private Integer type;

    // 充值方式
    private Integer channel;
    @TableField(exist = false)
    private String phone;

    //创建账单的ip地址
    private String spbill_create_ip;

    // 支付终端
    private Integer terminal;

    // 备注
    private String remark;

    private Date createDate;

    private Date updateDate;
}
